import React from 'react';
import {Provider} from 'react-redux';
import {HashRouter as Router} from 'react-router-dom';
import Routes from './routes';
import DevTools from './DevTools';
import store from './store';

const App = () => (
  <Provider store={store}>
    <div className="app-container">
      <Router>{Routes}</Router>
      {__DEV__ ? <DevTools /> : undefined}
    </div>
  </Provider>
);

export default App;
